<?php
require_once($_SERVER["DOCUMENT_ROOT"].'/include/helper/tools.php');
$show_name = $rsUser['User_NickName'] ? $rsUser['User_NickName'] : '未设置昵称';
$show_logo_souce = !empty($rsUser['User_HeadImg']) ? $rsUser['User_HeadImg'] : '/static/api/images/user/face.jpg';
if (isset($rsAccount) && $rsAccount && $rsConfig['Distribute_Customize'] == 1) {
	$show_name = !empty($rsAccount['Shop_Name']) ? $rsAccount['Shop_Name'] : '暂无';
	$show_logo_souce = !empty($rsAccount['Shop_Logo']) ? $rsAccount['Shop_Logo'] : '/static/api/images/user/face.jpg';	
}
if(stripos($show_logo_souce, 'qlogo.cn') === false){
	if ($show_logo_souce == '/static/api/images/user/face.jpg') {
$show_logo = $show_logo_souce;
} else {
	$show_logo = getImageUrl($show_logo_souce, 0);
	if (is_file($_SERVER["DOCUMENT_ROOT"] . $show_logo) && $show_logo != $show_logo_souce) {
	if (is_file($_SERVER["DOCUMENT_ROOT"] . $show_logo_souce)) {
	if (!unlink($_SERVER["DOCUMENT_ROOT"] . $show_logo_souce)) {
		echo '上传失败！重新上传，或联系管理员！';exit;
	}
	}	
	} else {
		if (is_file($_SERVER["DOCUMENT_ROOT"] . $show_logo_souce)) {
			$show_logo = $show_logo_souce;
		} else {
			$show_logo = '/static/api/images/user/face.jpg';
		}
	}
}
} else {
	$show_logo = $show_logo_souce;
}
?>